home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / pd / sdbm / tune.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-12  |  903 b   |  69 lines

  1. /* @(#)pd/sdbm/tune.h    1.1 5/12/92 11:03:55 */
  2. /*
  3.  * sdbm - ndbm work-alike hashed database library
  4.  * tuning and portability constructs [not nearly enough]
  5.  * author: oz@nexus.yorku.ca
  6.  */
  7.  
  8. /*
  9.  * ANSI?
  10.  */
  11.  
  12. #ifdef ANSI_C
  13.  
  14. #include <stdlib.h>
  15. #include <stddef.h>
  16. #include <limits.h>
  17.  
  18. #define BYTESIZ CHAR_BIT
  19.  
  20. #else    /* ! ANSI_C */
  21.  
  22. extern int errno;
  23. extern char *malloc();
  24. extern void free();
  25.  
  26. #define BYTESIZ 8
  27.  
  28. #endif    /* ! ANSI_C */
  29.  
  30. /*
  31.  * POSIX?
  32.  */
  33.  
  34. #ifdef POSIX_OS
  35. #include <unistd.h>
  36. #else
  37. extern long lseek();
  38. #endif
  39.  
  40. /*
  41.  * BSD?
  42.  */
  43.  
  44. #ifndef SEEK_SET
  45. #define SEEK_SET L_SET
  46. #endif
  47.  
  48. /*
  49.  * important tuning parms (hah)
  50.  */
  51.  
  52. #define SEEDUPS            /* always detect duplicates */
  53. #define BADMESS            /* generate a message for worst case:
  54.                    cannot make room after SPLTMAX splits */
  55.  
  56. /*
  57.  * misc
  58.  */
  59.  
  60. #ifndef NULL
  61. #define NULL    0
  62. #endif
  63.  
  64. #ifdef DEBUG
  65. #define debug(x)    printf x
  66. #else
  67. #define debug(x)
  68. #endif
  69.